X-MIME-Autoconverted: from quoted-printable to 8bit by baskerville.CS.Arizona.EDU id f2KN5f803888
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1483
My company originally posted this puzzle on an inhouse newsletter aimed at the MicroFocus COBOL programming staff. While I never saw a COBOL solution, I would be interested in an Icon/SNOBOL4/SPITBOL version. I would think that this kind of puzzle would be inherently easy in Icon, et al considering its backtracking mechanism.
Steve
===
Einstein's Riddle
Albert Einstein wrote this riddle this century [ed. 20th century]. He said
98% of the world could not solve it.
There are 5 houses in 5 different colors. In each house lives a person
with a different nationality. The 5 owners drink a certain type of
beverage, smoke a certain brand of cigar, and keep a certain pet. No owners
have the same pet, smoke the same brand of cigar or drink the same
beverage.
The question is: "Who owns the fish?"
Hints:
The Brit lives in the red house.
The Sweed keeps dogs as pets.
The Dane drinks tea.
The green house is on the left of the white house.
The green house's owner drinks coffee.
The person who smokes Pall Mall rears birds.
The owner of the yellow house smokes Dunhill.
The man living in the center house drinks milk.
The Norwegian lives in the first house.
The man who smokes Blends lives next to the one who keeps cats.
The man who keeps the horse lives next to the man who smokes Dunhill.
The owner who smokes Bluemasters drinks beer.
The German smokes Prince.
The Norwegian lives next to the blue house.
The man who smokes Blends has a neighbor who drinks water.